const port = {
  piecloud: piecloud ? piecloud : ""
};
let pieAuth = port.piecloud;

const UrlPath = {
  /*
   * 以 /dev/account/ 开头的api
   * */
  login_api: {
    loginByToken: pieAuth + '/dev/account/api/auth/loginByToken', //八包联调，根据token直接进入系统不需要前端的登陆
    login: pieAuth + '/dev/account/api/auth/login', //登录
    logout: pieAuth + '/dev/account/api/auth/logout', //退出
    updatePwdByOld: pieAuth + '/dev/account/api/sys/user/updatePwdByOld', //修改密码
    changePwd: pieAuth + '/dev/account/api/sys/user/changePwd', //调用10包接口修改密码
    createUser: pieAuth + '/dev/account/api/sys/user/createUser',
    updateUser: pieAuth + '/dev/account/api/sys/user/updateUser',
    permissionPath: pieAuth + '/dev/account/api/sys/res/queryMenuElement', //获取用户权限
  },
  info: {
    queryTotal: pieAuth + "/dev/account/api/sys/user/queryRegisterCount", //查询注册量
    userAll: pieAuth + '/dev/account/api/sys/user/queryAllUser',
    userOne: pieAuth + '/dev/account/api/sys/user/getUserInfo',
    queryAllUser: pieAuth + '/dev/account/api/sys/user/queryAllUser',
    ban: pieAuth + '/dev/account/api/sys/user/lockUser',
  },
  authRes: {
    getTree: pieAuth + "/dev/account/api/sys/res/getTree",
  },
  roleFunc: {
    getRolePermission: pieAuth + "/dev/account/api/roleFunc/permission/getRolePermission",
    binding: pieAuth + "/dev/account/api/roleFunc/permission/binding",
  },
  organization: {
    getTree: pieAuth + "/dev/account/api/organization",
    add: pieAuth + "/dev/account/api/organization",
    update: pieAuth + "/dev/account/api/organization/update",
    getByParentId: pieAuth + "/dev/account/api/organization/getByParentId",
    getDetail: pieAuth + "/dev/account/api/organization",
    delete: pieAuth + "/dev/account/api/organization",
    deleteUser: pieAuth + "/dev/account/api/sys/user/delete"
  },
  module: {
    getTree: pieAuth + "/dev/account/api/module/getBySystemId",
    getByParentId: pieAuth + "/dev/account/api/module/getByParentId",
    create: pieAuth + "/dev/account/api/module/",
    getById: pieAuth + "/dev/account/api/module",
    update: pieAuth + "/dev/account/api/module/update",
    delete: pieAuth + "/dev/account/api/module",
  },
  permission: {
    create: pieAuth + "/dev/account/api/sys/res/create",
    getByparentId: pieAuth + "/dev/account/api/sys/res/getList",
    getAllTree: pieAuth + "/dev/account/api/sys/res/getAllTree",
    delete: pieAuth + "/dev/account/api/sys/res/delete",
    getDeatil: pieAuth + "/dev/account/api/sys/res/getDetail",
    update: pieAuth + "/dev/account/api/sys/res/update",
  },
  enterprise: {
    getAll: pieAuth + "/dev/account/api/enterprise",
    create: pieAuth + "/dev/account/api/enterprise",
    update: pieAuth + "/dev/account/api/enterprise/update",
    getById: pieAuth + "/dev/account/api/enterprise",
    delete: pieAuth + "/dev/account/api/enterprise",
    getTree: pieAuth + "/dev/account/api/enterprise/getEnterTree",
  },
  res: {
    getResTree: pieAuth + '/dev/account/api/sys/res/getResTree',
    create: pieAuth + '/dev/account/api/sys/res/create',
    delete: pieAuth + '/dev/account/api/sys/res/delResById',
    update: pieAuth + '/dev/account/api/sys/res/updateRes',
    saveRoleRes: pieAuth + '/dev/account/api/sys/res/saveRoleRes',
    getRoleRes: pieAuth + '/dev/account/api/sys/res/getRoleRes',
    getRes: pieAuth + '/dev/account/api/sys/res/getRes',
  },
  product: {
    getProduct: pieAuth + '/dev/account/api/sys/product/getProductList',
    create: pieAuth + '/dev/account/api/sys/product/createProduct',
    update: pieAuth + '/dev/account/api/sys/product/updateProduct',
    delete: pieAuth + '/dev/account/api/sys/product/deleteProduct',
    getRoleProduct: pieAuth + '/dev/account/api/sys/product/getProductByRoleId',
    saveRoleProduct: pieAuth + '/dev/account/api/sys/product/saveRoleProduct',
    checkVisit: pieAuth + '/dev/account/api/sys/product/checkVisit',
    catDocument: pieAuth + "/sthx_server/product/taskDetailResult/catDocument",
  },
  role: {
    getCatalogRoleList: pieAuth + '/catalog/api/sys/catalog/role/list',
    getRole: pieAuth + '/dev/account/api/sys/role/getRoleList',
    create: pieAuth + '/dev/account/api/sys/role/createRole',
    update: pieAuth + '/dev/account/api/sys/role/updateRole',
    delete: pieAuth + '/dev/account/api/sys/role/deleteRole',
    getRoleType: pieAuth + '/dev/account/api/sys/role/getRoleType',
    getUsersRole: pieAuth + '/dev/account/api/sys/role/getUsersRole',
    createUserRole: pieAuth + '/dev/account/api/sys/role/bindUserRole',
  },
  /*
   *   以  /sthx_server/  开头的api请求
   * */
  flowProperty: {
    create: pieAuth + "/sthx_server/task/flowProperty/api/create",
    delete: pieAuth + "/sthx_server/task/flowProperty/api/delete",
    query: pieAuth + "/sthx_server/task/flowProperty/api/query",
    update: pieAuth + "/sthx_server/task/flowProperty/api/update",
    getOne: pieAuth + "/sthx_server/task/flowProperty/api/getOne",
  },
  autoTask: {
    create: pieAuth + "/sthx_server/task/api/autoTask/create",
    delete: pieAuth + "/sthx_server/task/api/autoTask/delete",
    query: pieAuth + "/sthx_server/task/api/autoTask/query",
    run: pieAuth + "/sthx_server/task/api/autoTask/run",
    update: pieAuth + "/sthx_server/task/api/autoTask/update",
    getParam: pieAuth + "/sthx_server/task/autoFlowParameters/search",
    source: pieAuth + "/sthx_server/task/api/taskSource/query",
    updateDefalut: pieAuth + "/sthx_server/task/autoFlowParameters",
  },
  taskTypeManage: {
    create: pieAuth + "/sthx_server/task/taskType/create",
    getAllTaskType: pieAuth + "/sthx_server/task/taskType/getAllTaskType",
    getTaskTypeById: pieAuth + "/sthx_server/task/taskType/getById/",
    taskTypeFlowBind: pieAuth + "/sthx_server/task/taskType/taskTypeFlowBind",
    updateTaskType: pieAuth + "/sthx_server/task/taskType/update/",
    getRoleProductLine: pieAuth + "/sthx_server/task/taskType/v1/getRoleProductLine",
    deleteTaskType: pieAuth + "/sthx_server/task/taskType/",
  },
  imageControlManage: {
    create: pieAuth + "/sthx_server/task/controlImage/create",
    getAll: pieAuth + "/sthx_server/task/controlImage/getAllControlImage",
    getById: pieAuth + "/sthx_server/task/controlImage/getById/",
    update: pieAuth + "/sthx_server/task/controlImage/update/",
    delete: pieAuth + "/sthx_server/task/controlImage/",
    getRoot: pieAuth + "/sthx_server/task/controlImage/getRoot",
    updateName: pieAuth + "/sthx_server/task/controlImage/update/", //修改节点名称
  },
  sthxTaskTaskInfo: {
    queryByTaskId: pieAuth + "/sthx_server/task/taskDetails/api/v1/query/",
    //导出统计分析
    exportResult: pieAuth + "/sthx_server/task/taskDetails/api/exportResult",
    //统计分析
    statistical: pieAuth + "/sthx_server/task/taskDetails/api/statistical",
    query: pieAuth + "/sthx_server/task/taskInfo/api/v1/query",
    detatilQuery: pieAuth + "/sthx_server/task/taskDetails/api/v1/query",
    deleteTaskInfo: pieAuth + "/sthx_server/task/taskInfo/api/v1/delete",
    deleteTaskDetail: pieAuth + "/sthx_server/task/taskDetails/api/v1/delete",
    updateStatus: pieAuth + "/sthx_server/task/taskInfo/api/v1/updateStatus",
    dataStatistics: pieAuth + "/sthx_server/task/taskInfo/api/v1/dataStatistics",
    queryTaskCatalog: pieAuth + "/sthx_server/task/taskInfo/api/v1/queryTaskCatalog",
    updateTaskPriority: pieAuth + "/sthx_server/task/taskInfo/api/update/",
    updateTask: pieAuth + "/sthx_server/task/taskDetails/api/update/",
    getAllTask: pieAuth + '/sthx_server/task/taskInfo/api/v1/getAllTask'
  },
  qualityCheck: { //质检界面
    downloadReport: pieAuth + "/sthx_server/product/taskDetailResult/downloadReport?paths=",
  },
  taskDetails: {
    delete: pieAuth + "/sthx_server/task/taskDetails/api/v1/delete/", //删除子任务
  },
  adminHome: {
    operatingRecord: pieAuth + "/sthx_server/system/operatingRecord",
    stateStatistics: pieAuth + "/sthx_server/task/taskInfo/api/v1/stateStatistics",
    query: pieAuth + "/prometheus/api/v1/query?query=",
    query1: pieAuth + "/prometheus/api/v1/query",
    dataTypeStatistics: pieAuth + "/sthx_server/task/taskInfo/api/v1/dataTypeStatistics",
    getShareFileInfo: pieAuth + "/sthx_server/monitor/clusterNode/getShareFileInfo",
    getSuccessPercent: pieAuth + "/sthx_server/task/taskDetails/api/getSuccessPercent",
  },
  homeIcon: {
    get: pieAuth + "/sthx_server/system/homeIcon/getHomeIcon",
    upload: pieAuth + "/sthx_server/system/homeIcon/upload",
    update: pieAuth + "/sthx_server/system/homeIcon/update",
    getByAppId: pieAuth + "/sthx_server/system/homeIcon/getByAppId/",
    delete: pieAuth + "/sthx_server/system/homeIcon/",
  },
  sysVersion: {
    create: pieAuth + "/sthx_server/system/sysVersion/create",
    delete: pieAuth + "/sthx_server/system/sysVersion/delete",
    getAll: pieAuth + "/sthx_server/system/sysVersion/getAll",
    getDictVersion: pieAuth + "/sthx_server/system/sysVersion/getDictVersion",
    getNewVersion: pieAuth + "/sthx_server/system/sysVersion/getNewVersion",
    update: pieAuth + "/sthx_server/system/sysVersion/update",
  },
  dictCodeObj: {
    create: pieAuth + '/sthx_server/system/dict/api/create', //新增
    delete: pieAuth + '/sthx_server/system/dict/api/deleteById', //删除
    getDictByParentId: pieAuth + '/sthx_server/system/dict/api/getDictByParentId', //根据父节点查询
    getDictCodeTree: pieAuth + '/sthx_server/system/dict/api/getDictCodeTree',
    updateDictCodeById: pieAuth + '/sthx_server/system/dict/api/updateDictCodeById',
    getAllChildByDictCode: pieAuth + '/sthx_server/system/dict/api/getAllChildByDictCode',
  },
  childTask: { //任务监控页面流程图界面
    childTaskWorkFlow: pieAuth + '/coordinator/workflow/',
    updateStatus: pieAuth + '/sthx_server/task/taskDetails/api/v1/updateStatus/',
    queryInfoByWorkFlowId: pieAuth + '/sthx_server/task/taskDetails/api/v1/queryInfoByWorkFlowId/',
    batchUpdateStatus: pieAuth + '/sthx_server/task/taskDetails/api/v1/batchUpdateStatus/',
  },
  resourceNode: {
    clusterNode: pieAuth + '/sthx_server/monitor/clusterNode', //创建post  查询 get 根据id查询get{id}  更新post{id}  删除delete{id}
    getByCondition: pieAuth + '/sthx_server/monitor/clusterNode', //根据条件查询
  },
  processProduct: { //处理加工界面
    workFlowGroup: pieAuth + "/sthx_server/system/productLine/api/v1/workFlowGroup", //更新的处理加工的接口
    getLeftTreeMenu: pieAuth + "/coordinator/metadata/workflow/groupTree?groupId=",
    groupId: pieAuth + "/coordinator/metadata/workflow/group?groupId=", //获取左侧菜单
    processmodel: pieAuth + "/task-manage/processclassify/quzeryFirstLevelProcessInfoByTreeKey/processmodel",
    productLineQuery: pieAuth + '/coordinator/metadata/workflow/',
    groupSort: pieAuth + '/coordinator/metadata/workflow/groupSort', //工作流分组排序
    sort: pieAuth + '/coordinator/metadata/workflow/sort', //生产线排序
    search: "/coordinator/workflow/search",
    downLoad: pieAuth + "/sthx_server/product/taskDetailResult/queryByTaskDetailId/",
    // downLoadProduct: "/sthx_server/product/taskDetailResult/downloadReport",
    // userBrowserFilePath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getUserUrl",//用户文件浏览接口
    browserRefPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getCoordinateSystem", //空间参考浏览接口
    getFileListByPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getFileListByPath", //子文件浏览接口
    fileRootPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getRootDir/", //根目录获取
    getDir: pieAuth + '/sthx_server/system/fileInfo/api/v1/getDir/',
    createFolder: pieAuth + '/sthx_server/system/fileInfo/api/v1/dir/create',
    createFile: pieAuth + '/sthx_server/system/fileInfo/api/v1/file/create',
    submitTask: pieAuth + "/sthx_server/task/taskInfo/api/v1/create", //任务提交
    queryLatest: pieAuth + "/sthx_server/task/taskDetails/api/v1/queryLatest",
    taskDetailResult: pieAuth + "/sthx_server/product/taskDetailResult/query/", //根据主任务id和产品结果类型查询任务结果
    queryByTaskDetailId: pieAuth + "/sthx_server/product/taskDetailResult/queryByTaskDetailId/", //根据子任务id和产品结果类型查询任务结果
    searchProcessParameters: pieAuth + "/sthx_server/task/processParameters/search",
    queryInfoByRange: pieAuth + "/sthx_server/task/taskDetails/api/v1/queryInfoByRange",
    imageMetaDataCount: pieAuth + "/api/v1/image_manager/imageMetaData/imageMetaDataCount",
    lately: pieAuth + "/sthx_server/task/taskInfo/api/v1/lately",
    // upload:pieAuth + "/sthx_server/system/homeIcon/upload",  //图标和一级二级标题的修改上传
    // getHomeIcon:pieAuth + "/sthx_server/system/homeIcon/getHomeIcon"  //图标和一级二级标题的更新
    getDemType: pieAuth + "/sthx_server/task/controlImage/getByParentCode"
  },
  dataEngine: {
    queryFeature: pieAuth + '/api/v3/dataEngine/featureCollection/queryFeatureByQueryParameter',
    queryFeatureBase64:pieAuth + '/api/v3/dataEngine/featureCollection/queryFeatureByCompose',
    queryRegionClassifyType: pieAuth + "/sthx_server/product/taskProduct/queryAreaType",
    readShp: pieAuth + "/sthx_server/product/vectorData/readShp"
  },
  sateLliteModel: {
    path: pieAuth + "/sthx_server/system/sateLliteModel", //增删改查
  },
  /*
   * 以 /test/ 开头的api
   * */
  kong: {
    plugins: pieAuth + '/test/proxy/plugins',
    services: pieAuth + '/test/proxy/services',
    routes: pieAuth + '/test/proxy/routes/', // 路由的增删改查
    upstreams: pieAuth + '/test/proxy/upstreams', // 负载均衡
    consumers: pieAuth + '/test/proxy/consumers',
    basicAuth: pieAuth + '/test/proxy/basic-auths',
    keyAuth: pieAuth + '/test/proxy/key-auths',
    oauth2: pieAuth + '/test/proxy/oauth2',
    acl: pieAuth + '/test/proxyacls',
  },
  /*
   * 以 /api/v1/ 开头的api
   * */
  processNanagement: { //流程分类
    queryProcessInfo: pieAuth + "/api/v1/image_manager/processclassify/queryProcessInfo"
  },
  imageMetaData: {
    imageMetaDataListByCondition: pieAuth + "/api/v1/image_manager/imageMetaData/imageMetaDataListByCondition", //镜像元数据列表条件查询
    updateImageMetaData: pieAuth + "/api/v1/image_manager/imageMetaData/updateImageMetaData/", //更新镜像源数据
    DeleteImageMetaDataById: pieAuth + "/api/v1/image_manager/imageMetaData/deleteImageMetaDataById/", //通过id删除源数据
    queryImageMetaDataList: pieAuth + "/api/v1/image_manager/imageMetaData/imageMetaDataList", // 查询镜像元数据列表
    createImageMetaData: pieAuth + "/api/v1/image_manager/imageMetaData/addImageMetaData", // 新建镜像元数据
    imageMetaDataListByClassifyId: pieAuth + "/api/v1/image_manager/imageMetaData/imageMetaDataListByClassifyId",
    loglist: pieAuth + "/api/v1/log/list" //任务日志
  },
  modelCategory: {
    create: pieAuth + '/api/v1/image_manager/processclassify/insertProcessInfo', //新增
    delete: pieAuth + '/api/v1/image_manager/processclassify/deleteProcessInfoById', //删除
    getByParentId: pieAuth + '/api/v1/image_manager/processclassify/queryProcessInfoByParentId', //根据父节点查询
    getTree: pieAuth + '/api/v1/image_manager/processclassify/queryProcessInfoTreeByTreeKey',
    update: pieAuth + '/api/v1/image_manager/processclassify/updateProcessInfoById',
    getFirst: pieAuth + '/api/v1/image_manager/processclassify/queryFirstLevelProcessInfoByTreeKey', //获取第一级别的目录
    move: pieAuth + '/api/v1/image_manager/imageMetaData/updateImageMetaData',
    queryProcessInfoTreeByTreeKey: pieAuth + '/api/v1/image_manager/processclassify/queryProcessInfoTreeByTreeKey/',
    imageMetaDataAllListByCondition: pieAuth + '/api/v1/image_manager/imageMetaData/imageMetaDataAllListByCondition'
  },
  arithmetic: { //算法插件
    updataAlgIcon: pieAuth + "/api/v1/image_manager/imageMetaData/updateAlgIconByAlgAndVersion", //更新算法图标
    getAlgIcone: pieAuth + "/api/v1/image_manager/imageMetaData/algIconByAlgAndVersion",
    imageMetaDataListByCondition: pieAuth + "/api/v1/image_manager/imageMetaData/imageMetaDataListByCondition",
    queryProcessInfoTreeByTreeKey: pieAuth + "/api/v1/image_manager/processclassify/queryProcessInfoTreeByTreeKey/", //算法分类查询
    getDataList: pieAuth + "/api/v1/image_manager/imageMetaData/imageUpload/", //算法上传
    operatingRecord: pieAuth + '/sthx_server/system/operatingRecord/reocrd',
    getImageMetaDataList: pieAuth + "/api/v1/image_manager/imageMetaData/imageMetaDataListByID/", //算法参数查询
    imageUploadBatch: pieAuth + "/api/v1/image_manager/imageMetaData/imageUploadBatch", //批量上传
    imageTaskListByID: pieAuth + "/api/v1/image_manager/imageTask/imageTaskListByID/", //批量上传信息
  },
  /*
   * 以 /file/system/ 开头的接口
   * */
  fileResourceManage: {
    getCatalogList: pieAuth + "/file/system/manage/api/v1/resource/list",
    createFolder: pieAuth + "/file/system/manage/api/v1/resource/createFolder",
    createFile: pieAuth + '/file/system/manage/api/v1/resource/createFile',
    delete: pieAuth + "/file/system/manage/api/v1/resource/delete",
    // downloadFile: pieAuth + "/file/system/manage/api/v1/resource/downloadReport",
    find: pieAuth + "/file/system/manage/api/v1/resource/find",
    doCheckBefore: pieAuth + '/file/system/manage/api/v1/resource/doCheckBefore',
    operate: pieAuth + "/file/system/manage/api/v1/resource/operate", //移动&复制
    rename: pieAuth + "/file/system/manage/api/v1/resource/rename/",
    compress: pieAuth + '/file/system/manage/api/v1/resource/compress',
    unCompress: pieAuth + "/file/system/manage/api/v1/resource/unCompress",
    // uploadFile: pieAuth + "/file/system/manage/api/v1/resource/uploadFile",
    upload: pieAuth + "/file/system/manage/api/v1/resource/upload",
    getDownLoadKey: pieAuth + "/file/system/manage/api/v1/resource/getDownLoadKey",
    download: pieAuth + "/file/system/manage/api/v1/resource/download",
  },
  downLoadFile: {
    isExit: pieAuth + '/sthx_server/system/fileInfo/api/isExit', // "/file/system/manage/api/v1/resource/isExit", //判断文件是否可以下载
    getFileTree: pieAuth + "/file/system/manage/api/v1/resource/getFileTree" //下载文件的文件组织机构树
  },
  /*
   * 以 /coordinator/ 开头的api
   * */
  productManage: { //模型管理-生产线管理
    search: pieAuth + '/coordinator/metadata/workflow/search',
    query: pieAuth + '/sthx_server/system/productLine/api/v1/query', //重新修改处理加工生产线弹窗
    delete: pieAuth + '/coordinator/metadata/workflow/',
    loopUpGraph: pieAuth + '/coordinator/metadata/workflow/',
    loopUpGraph1: pieAuth + '/coordinator/metadata/workflow',
    submitTask: pieAuth + '/coordinator/workflow/start',
    delworkflow: pieAuth + '/coordinator/workflow/', //删除工作流
    queryProcessLabels: pieAuth + '/sthx_server/system/productLine/api/v1/queryMyLabels', //查询流程属性

    downloadWorkflow: pieAuth + '/coordinator/metadata/workflow/download',
    recoverWorkflow: pieAuth + '/coordinator/metadata/workflow/recover',
  },
  production: {
    productLine: pieAuth + '/coordinator/metadata/workflow/group', //生产线分类增（post）和查(get)
    delete: pieAuth + "/coordinator/metadata/workflow", //删
    getTree: pieAuth + "/coordinator/metadata/workflow/groupTree",
    update: pieAuth + "/coordinator/metadata/workflow/updateGroupById",
    imageMetaDataListByCondition: pieAuth + "/coordinator/api/v1/image_manager/imageMetaData/imageMetaDataListByCondition",
  },
  workflow: {
    group: pieAuth + "/coordinator/workflow/group", //查询分组
    workflows: pieAuth + "/coordinator/workflow/search", //查询工作流
    updateStatus: pieAuth + "/coordinator/workflow", //删除
    delete: pieAuth + "/sthx_server/task/taskInfo/api/v1/delete/"
  },
  RWJK_LCT: {
    search: "/coordinator/metadata/workflow/search"
  },
  /*
   * 以  /catalog/ 开头的api
   * */
  catalog: {
    checkToken: pieAuth + "/dev/account/api/auth/checkTokenValid",
    getCatalog: pieAuth + '/catalog/api/sys/catalog/getMenu',
    getCatalogTree: pieAuth + '/catalog/api/sys/catalog/getCatalogTree',
    create: pieAuth + '/catalog/api/sys/catalog/create',
    delete: pieAuth + '/catalog/api/sys/catalog/delCatalogByIds',
    update: pieAuth + '/catalog/api/sys/catalog/updateMenu',
    getRoleCatalog: pieAuth + '/catalog/api/sys/roleCatalog/getRoleCatalog',
    saveCatalog: pieAuth + '/catalog/api/sys/roleCatalog/saveCatalog',
    getMyCatalog: pieAuth + '/dev/account/api/sys/res/getTree',
    details: pieAuth + '/catalog/api/sys/catalog/catalogDetails/'
  },

  /*
   * 一下接口非常零散
   * */
  workflowSearch: {
    searchBySortGroupId: pieAuth + "/coordinator/workflow/searchBySortGroupId",
    query: pieAuth + '/sthx_server/task/taskDetails/api/v1/query',
    queryInfo: pieAuth + '/sthx_server/task/taskDetails/api/v1/queryInfo',
  },
  taskMonitor: {
    search: pieAuth + '/coordinator/workflow/search',
    getParamsPath: pieAuth + '/coordinator/task/',
    getCpuInfo: pieAuth + "/sthx_server/monitor/clusterNode/getCpuInfo",
    getInfo: pieAuth + "/sthx_server/monitor/clusterNode/getInfo",
    task: pieAuth + "/watcher/task/",
  },
  sourceMoitor: {
    query_range: pieAuth + "/prometheus/api/v1/query_range?query=",
  },
  satellitesensor: {
    queryRelated: pieAuth + "/tool/satellitesensor/queryRelated", //查找卫星传感器关联信息
    dataType: pieAuth + "/sthx_server/system/dataType", //查找卫星传感器关联信息
  },
  grafana: {
    getCpu: pieAuth + "/grafana/api/datasources/proxy/6/api/v1/query_range",
    query: pieAuth + "/grafana/api/datasources/proxy/6/api/v1/query"
  },
  productionLine: {
    copyProductionLine: pieAuth + "/coordinator/metadata/workflow/", //复制生产线
    downLoadProductionLine: pieAuth + "/coordinator/metadata/workflow/",
    createBind: pieAuth + "/sthx_server/system/productLine/api/v1/createBind",
    getRoleProductLine: pieAuth + "/sthx_server/system/productLine/api/v1/getRoleProductLine"
  },

  //暂时不清楚用处
  commonPath: pieAuth,
  grafanaUrl: grafanaUrl,
  webSocketUrl: pieAuth.split("//")[1],
};
export default UrlPath
/*
// var http = '/fengjing'
// const flag = !(process.env.NODE_ENV === 'production')
const port = {
  piecloud: piecloud
}
let pieAuth = port.piecloud //http://piecloud.piesat.cn
let managementProcess = pieAuth

let loginCheck = pieAuth + '/dev/account' //用户权限
let catalogApi = pieAuth + '/catalog' //菜单权限
let grafana = pieAuth + "/grafana/api/datasources/proxy/6/api/v1"
let kongApi = pieAuth + "/test/proxy"
let imageManage = pieAuth + "/api/v1/image_manager/imageMetaData" // 镜像管理
let modelManage = pieAuth + "/api/v1/image_manager";
let monitor = pieAuth + "/sthx_server/monitor";
let productionManage = pieAuth + "/coordinator";
let sthxServerTask = pieAuth + "/sthx_server/task";
let sthxServerSystem = pieAuth + "/sthx_server/system";
let workflow = pieAuth + "/coordinator/workflow/"
// let dataEngine = pieAuth + '/api/v2/dataEngine';
let dataEngine = pieAuth + '/api/v3/dataEngine';
let fileResource = pieAuth + '/file/system/manage';

let webSocketUrl = pieAuth.split("//")[1];
let tool = pieAuth + "/tool";
const UrlPath = {
  login_api: {
    loginByToken: loginCheck + '/api/auth/loginByToken', //八包联调，根据token直接进入系统不需要前端的登陆
    login: loginCheck + '/api/auth/login', //登录
    logout: loginCheck + '/api/auth/logout', //退出
    updatePwdByOld: loginCheck + '/api/sys/user/updatePwdByOld', //修改密码
    changePwd: loginCheck + '/api/sys/user/changePwd', //调用10包接口修改密码
    createUser: loginCheck + '/api/sys/user/createUser',
    updateUser: loginCheck + '/api/sys/user/updateUser',
    permissionPath: loginCheck + '/api/sys/res/queryMenuElement' //获取用户权限
  },
  info: {
    userAll: loginCheck + '/api/sys/user/queryAllUser',
    userOne: loginCheck + '/api/sys/user/getUserInfo',
    queryAllUser: loginCheck + '/api/sys/user/queryAllUser',
    ban: loginCheck + '/api/sys/user/lockUser',
    queryTotal: loginCheck + "/api/sys/user/queryRegisterCount", //查询注册量
  },
  authRes: {
    getTree: loginCheck + "/api/sys/res/getTree",
  },
  roleFunc: {
    getRolePermission: loginCheck + "/api/roleFunc/permission/getRolePermission",
    binding: loginCheck + "/api/roleFunc/permission/binding",
  },
  adminHome: {
    operatingRecord: sthxServerSystem + "/operatingRecord",
    stateStatistics: pieAuth + "/sthx_server/task/taskInfo/api/v1/stateStatistics",
    query: pieAuth + "/prometheus/api/v1/query?query=",
    query1: pieAuth + "/prometheus/api/v1/query",
    dataTypeStatistics: pieAuth + "/sthx_server/task/taskInfo/api/v1/dataTypeStatistics",
    getShareFileInfo: monitor + "/clusterNode/getShareFileInfo",
    getSuccessPercent: pieAuth + "/sthx_server/task/taskDetails/api/getSuccessPercent",
  },
  organization: {
    getTree: loginCheck + "/api/organization",
    add: loginCheck + "/api/organization",
    update: loginCheck + "/api/organization/update",
    getByParentId: loginCheck + "/api/organization/getByParentId",
    getDetail: loginCheck + "/api/organization",
    delete: loginCheck + "/api/organization",
    deleteUser: loginCheck + "/api/sys/user/delete"
  },
  module: {
    getTree: loginCheck + "/api/module/getBySystemId",
    getByParentId: loginCheck + "/api/module/getByParentId",
    create: loginCheck + "/api/module/",
    getById: loginCheck + "/api/module",
    update: loginCheck + "/api/module/update",
    delete: loginCheck + "/api/module",
  },
  permission: {
    create: loginCheck + "/api/sys/res/create",
    getByparentId: loginCheck + "/api/sys/res/getList",
    getAllTree: loginCheck + "/api/sys/res/getAllTree",
    delete: loginCheck + "/api/sys/res/delete",
    getDeatil: loginCheck + "/api/sys/res/getDetail",
    update: loginCheck + "/api/sys/res/update",
  },
  homeIcon: {
    get: sthxServerSystem + "/homeIcon/getHomeIcon",
    upload: sthxServerSystem + "/homeIcon/upload",
    update: sthxServerSystem + "/homeIcon/update",
    getByAppId: sthxServerSystem + "/homeIcon/getByAppId/",
    delete: sthxServerSystem + "/homeIcon/",
  },
  sysVersion: {
    create: sthxServerSystem + "/sysVersion/create",
    delete: sthxServerSystem + "/sysVersion/delete",
    getAll: sthxServerSystem + "/sysVersion/getAll",
    getDictVersion: sthxServerSystem + "/sysVersion/getDictVersion",
    getNewVersion: sthxServerSystem + "/sysVersion/getNewVersion",
    update: sthxServerSystem + "/sysVersion/update",
  },
  taskTypeManage: {
    create: pieAuth + "/sthx_server/task/taskType/create",
    getAllTaskType: pieAuth + "/sthx_server/task/taskType/getAllTaskType",
    getTaskTypeById: pieAuth + "/sthx_server/task/taskType/getById/",
    taskTypeFlowBind: pieAuth + "/sthx_server/task/taskType/taskTypeFlowBind",
    updateTaskType: pieAuth + "/sthx_server/task/taskType/update/",
    getRoleProductLine: pieAuth + "/sthx_server/task/taskType/v1/getRoleProductLine",
    deleteTaskType: pieAuth + "/sthx_server/task/taskType/",
  },
  imageControlManage: {
    create: pieAuth + "/sthx_server/task/controlImage/create",
    getAll: pieAuth + "/sthx_server/task/controlImage/getAllControlImage",
    getById: pieAuth + "/sthx_server/task/controlImage/getById/",
    update: pieAuth + "/sthx_server/task/controlImage/update/",
    delete: pieAuth + "/sthx_server/task/controlImage/",
    getRoot: pieAuth + "/sthx_server/task/controlImage/getRoot",
    updateName: pieAuth + "/sthx_server/task/controlImage/update/", //修改节点名称
  },
  enterprise: {
    getAll: loginCheck + "/api/enterprise",
    create: loginCheck + "/api/enterprise",
    update: loginCheck + "/api/enterprise/update",
    getById: loginCheck + "/api/enterprise",
    delete: loginCheck + "/api/enterprise",
    getTree: loginCheck + "/api/enterprise/getEnterTree",
  },
  catalog: {
    checkToken: loginCheck + "/api/auth/checkTokenValid",
    getCatalog: catalogApi + '/api/sys/catalog/getMenu',
    getCatalogTree: catalogApi + '/api/sys/catalog/getCatalogTree',
    create: catalogApi + '/api/sys/catalog/create',
    delete: catalogApi + '/api/sys/catalog/delCatalogByIds',
    update: catalogApi + '/api/sys/catalog/updateMenu',
    getRoleCatalog: catalogApi + '/api/sys/roleCatalog/getRoleCatalog',
    saveCatalog: catalogApi + '/api/sys/roleCatalog/saveCatalog',
    getMyCatalog: loginCheck + '/api/sys/res/getTree',
    details: catalogApi + '/api/sys/catalog/catalogDetails/'
  },
  res: {
    getResTree: loginCheck + '/api/sys/res/getResTree',
    create: loginCheck + '/api/sys/res/create',
    delete: loginCheck + '/api/sys/res/delResById',
    update: loginCheck + '/api/sys/res/updateRes',
    saveRoleRes: loginCheck + '/api/sys/res/saveRoleRes',
    getRoleRes: loginCheck + '/api/sys/res/getRoleRes',
    getRes: loginCheck + '/api/sys/res/getRes'
  },
  workflowSearch: {
    searchBySortGroupId: workflow + 'searchBySortGroupId',
    query: sthxServerTask + '/taskDetails/api/v1/query',
    queryInfo: sthxServerTask + '/taskDetails/api/v1/queryInfo',
  },
  product: {
    getProduct: loginCheck + '/api/sys/product/getProductList',
    create: loginCheck + '/api/sys/product/createProduct',
    update: loginCheck + '/api/sys/product/updateProduct',
    delete: loginCheck + '/api/sys/product/deleteProduct',
    getRoleProduct: loginCheck + '/api/sys/product/getProductByRoleId',
    saveRoleProduct: loginCheck + '/api/sys/product/saveRoleProduct',
    checkVisit: loginCheck + '/api/sys/product/checkVisit',

    catDocument: pieAuth + "/sthx_server/product/taskDetailResult/catDocument",
  },
  productManage: { //模型管理-生产线管理
    search: productionManage + '/metadata/workflow/search',
    query: pieAuth + '/sthx_server/system/productLine/api/v1/query', //重新修改处理加工生产线弹窗
    delete: productionManage + '/metadata/workflow/',
    loopUpGraph: productionManage + '/metadata/workflow/',
    loopUpGraph1: productionManage + '/metadata/workflow',
    submitTask: productionManage + '/workflow/start',
    delworkflow: productionManage + '/workflow/', //删除工作流
    queryProcessLabels: pieAuth + '/sthx_server/system/productLine/api/v1/queryMyLabels', //查询流程属性

    downloadWorkflow: productionManage + '/metadata/workflow/download',
    recoverWorkflow: productionManage + '/metadata/workflow/recover',
  },
  production: {
    productLine: productionManage + '/metadata/workflow/group', //生产线分类增（post）和查(get)
    delete: productionManage + "/metadata/workflow", //删
    getTree: productionManage + "/metadata/workflow/groupTree",
    update: productionManage + "/metadata/workflow/updateGroupById",
    imageMetaDataListByCondition: productionManage + "/api/v1/image_manager/imageMetaData/imageMetaDataListByCondition",
  },

  workflow: {
    group: productionManage + "/workflow/group", //查询分组
    workflows: productionManage + "/workflow/search", //查询工作流
    updateStatus: productionManage + "/workflow", //删除
    delete: sthxServerTask + "/taskInfo/api/v1/delete/"
  },

  taskMonitor: {
    search: pieAuth + '/coordinator/workflow/search',
    getParamsPath: pieAuth + '/coordinator/task/',
    getCpuInfo: monitor + "/clusterNode/getCpuInfo",
    getInfo: monitor + "/clusterNode/getInfo",
    task: pieAuth + "/watcher/task/",
  },
  sourceMoitor: {
    query_range: pieAuth + "/prometheus/api/v1/query_range?query=",

  },
  childTask: { //任务监控页面流程图界面
    childTaskWorkFlow: pieAuth + '/coordinator/workflow/',
    updateStatus: pieAuth + '/sthx_server/task/taskDetails/api/v1/updateStatus/',
    queryInfoByWorkFlowId: pieAuth + '/sthx_server/task/taskDetails/api/v1/queryInfoByWorkFlowId/',
    batchUpdateStatus: pieAuth + '/sthx_server/task/taskDetails/api/v1/batchUpdateStatus/',
  },
  processProduct: { //处理加工界面
    workFlowGroup: pieAuth + "/sthx_server/system/productLine/api/v1/workFlowGroup", //更新的处理加工的接口
    getLeftTreeMenu: pieAuth + "/coordinator/metadata/workflow/groupTree?groupId=",
    groupId: pieAuth + "/coordinator/metadata/workflow/group?groupId=", //获取左侧菜单
    processmodel: pieAuth + "/task-manage/processclassify/quzeryFirstLevelProcessInfoByTreeKey/processmodel",
    productLineQuery: pieAuth + '/coordinator/metadata/workflow/',

    groupSort: pieAuth + '/coordinator/metadata/workflow/groupSort', //工作流分组排序
    sort: pieAuth + '/coordinator/metadata/workflow/sort', //生产线排序

    search: "/coordinator/workflow/search",
    downLoad: pieAuth + "/sthx_server/product/taskDetailResult/queryByTaskDetailId/",
    // downLoadProduct: "/sthx_server/product/taskDetailResult/downloadReport",

    // userBrowserFilePath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getUserUrl",//用户文件浏览接口
    browserRefPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getCoordinateSystem", //空间参考浏览接口

    getFileListByPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getFileListByPath", //子文件浏览接口
    fileRootPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getRootDir/", //根目录获取
    getDir: pieAuth + '/sthx_server/system/fileInfo/api/v1/getDir/',
    createFolder: pieAuth + '/sthx_server/system/fileInfo/api/v1/dir/create',
    createFile: pieAuth + '/sthx_server/system/fileInfo/api/v1/file/create',

    submitTask: pieAuth + "/sthx_server/task/taskInfo/api/v1/create", //任务提交
    queryLatest: managementProcess + "/sthx_server/task/taskDetails/api/v1/queryLatest",
    taskDetailResult: managementProcess + "/sthx_server/product/taskDetailResult/query/", //根据主任务id和产品结果类型查询任务结果
    queryByTaskDetailId: managementProcess + "/sthx_server/product/taskDetailResult/queryByTaskDetailId/", //根据子任务id和产品结果类型查询任务结果
    searchProcessParameters: pieAuth + "/sthx_server/task/processParameters/search",

    queryInfoByRange: pieAuth + "/sthx_server/task/taskDetails/api/v1/queryInfoByRange",
    imageMetaDataCount: pieAuth + "/api/v1/image_manager/imageMetaData/imageMetaDataCount",
    lately: pieAuth + "/sthx_server/task/taskInfo/api/v1/lately",

    // upload:pieAuth + "/sthx_server/system/homeIcon/upload",  //图标和一级二级标题的修改上传
    // getHomeIcon:pieAuth + "/sthx_server/system/homeIcon/getHomeIcon"  //图标和一级二级标题的更新
    getDemType: pieAuth + "/sthx_server/task/controlImage/getByParentCode"

  },
  role: {
    getCatalogRoleList: catalogApi + '/api/sys/catalog/role/list',
    getRole: loginCheck + '/api/sys/role/getRoleList',
    create: loginCheck + '/api/sys/role/createRole',
    update: loginCheck + '/api/sys/role/updateRole',
    delete: loginCheck + '/api/sys/role/deleteRole',
    getRoleType: loginCheck + '/api/sys/role/getRoleType',
    getUsersRole: loginCheck + '/api/sys/role/getUsersRole',
    createUserRole: loginCheck + '/api/sys/role/bindUserRole',
  },
  kong: {
    plugins: kongApi + '/plugins',
    services: kongApi + '/services',
    routes: kongApi + '/routes/', // 路由的增删改查
    upstreams: kongApi + '/upstreams', // 负载均衡
    consumers: kongApi + '/consumers',
    basicAuth: kongApi + '/basic-auths',
    keyAuth: kongApi + '/key-auths',
    oauth2: kongApi + '/oauth2',
    acl: kongApi + 'acls',
  },
  processNanagement: { //流程分类
    queryProcessInfo: managementProcess + "/api/v1/image_manager/processclassify/queryProcessInfo"
  },
  imageMetaData: {
    imageMetaDataListByCondition: managementProcess + "/api/v1/image_manager/imageMetaData/imageMetaDataListByCondition", //镜像元数据列表条件查询
    updateImageMetaData: modelManage + "/imageMetaData/updateImageMetaData/", //更新镜像源数据
    DeleteImageMetaDataById: modelManage + "/imageMetaData/deleteImageMetaDataById/", //通过id删除源数据
    queryImageMetaDataList: imageManage + "/imageMetaDataList", // 查询镜像元数据列表
    createImageMetaData: imageManage + "/addImageMetaData", // 新建镜像元数据
    imageMetaDataListByClassifyId: imageManage + "/imageMetaDataListByClassifyId",
    loglist: managementProcess + "/api/v1/log/list" //任务日志
  },
  dictCodeObj: {
    create: sthxServerSystem + '/dict/api/create', //新增
    delete: sthxServerSystem + '/dict/api/deleteById', //删除
    getDictByParentId: sthxServerSystem + '/dict/api/getDictByParentId', //根据父节点查询
    getDictCodeTree: sthxServerSystem + '/dict/api/getDictCodeTree',
    updateDictCodeById: sthxServerSystem + '/dict/api/updateDictCodeById',
    getAllChildByDictCode: sthxServerSystem + '/dict/api/getAllChildByDictCode',
  },
  sateLliteModel: {
    path: sthxServerSystem + "/sateLliteModel", //增删改查
  },
  satellitesensor: {
    queryRelated: tool + "/satellitesensor/queryRelated", //查找卫星传感器关联信息
    dataType: sthxServerSystem + "/dataType", //查找卫星传感器关联信息
  },
  flowProperty: {
    create: sthxServerTask + "/flowProperty/api/create",
    delete: sthxServerTask + "/flowProperty/api/delete",
    query: sthxServerTask + "/flowProperty/api/query",
    update: sthxServerTask + "/flowProperty/api/update",
    getOne: sthxServerTask + "/flowProperty/api/getOne",
  },
  autoTask: {
    create: sthxServerTask + "/api/autoTask/create",
    delete: sthxServerTask + "/api/autoTask/delete",
    query: sthxServerTask + "/api/autoTask/query",
    run: sthxServerTask + "/api/autoTask/run",
    update: sthxServerTask + "/api/autoTask/update",
    getParam: sthxServerTask + "/autoFlowParameters/search",
    source: sthxServerTask + "/api/taskSource/query",
    updateDefalut: sthxServerTask + "/autoFlowParameters",
  },

  sthxTaskTaskInfo: {
    queryByTaskId: sthxServerTask + "/taskDetails/api/v1/query/",
    //导出统计分析
    exportResult: sthxServerTask + "/taskDetails/api/exportResult",
    //统计分析
    statistical: sthxServerTask + "/taskDetails/api/statistical",

    query: sthxServerTask + "/taskInfo/api/v1/query",
    detatilQuery: sthxServerTask + "/taskDetails/api/v1/query",
    deleteTaskInfo: sthxServerTask + "/taskInfo/api/v1/delete",
    deleteTaskDetail: sthxServerTask + "/taskDetails/api/v1/delete",
    updateStatus: sthxServerTask + "/taskInfo/api/v1/updateStatus",
    dataStatistics: sthxServerTask + "/taskInfo/api/v1/dataStatistics",
    queryTaskCatalog: sthxServerTask + "/taskInfo/api/v1/queryTaskCatalog",

    updateTaskPriority: sthxServerTask + "/taskInfo/api/update/",
    updateTask: sthxServerTask + "/taskDetails/api/update/",

    getAllTask: sthxServerTask + '/taskInfo/api/v1/getAllTask', //查询系统所有用户的任务

  },
  //质检界面
  qualityCheck: {
    downloadReport: pieAuth + "/sthx_server/product/taskDetailResult/downloadReport?paths=",
  },
  taskDetails: {
    delete: sthxServerTask + "/taskDetails/api/v1/delete/", //删除子任务
  },
  modelCategory: {
    create: modelManage + '/processclassify/insertProcessInfo', //新增
    delete: modelManage + '/processclassify/deleteProcessInfoById', //删除
    getByParentId: modelManage + '/processclassify/queryProcessInfoByParentId', //根据父节点查询
    getTree: modelManage + '/processclassify/queryProcessInfoTreeByTreeKey',
    update: modelManage + '/processclassify/updateProcessInfoById',
    getFirst: modelManage + '/processclassify/queryFirstLevelProcessInfoByTreeKey', //获取第一级别的目录
    move: modelManage + '/imageMetaData/updateImageMetaData',
    queryProcessInfoTreeByTreeKey: modelManage + '/processclassify/queryProcessInfoTreeByTreeKey/',
    imageMetaDataAllListByCondition: pieAuth + '/api/v1/image_manager/imageMetaData/imageMetaDataAllListByCondition'
  },
  resourceNode: {
    clusterNode: monitor + '/clusterNode', //创建post  查询 get 根据id查询get{id}  更新post{id}  删除delete{id}
    getByCondition: monitor + '/clusterNode', //根据条件查询
  },
  arithmetic: { //算法插件
    updataAlgIcon: imageManage + "/updateAlgIconByAlgAndVersion", //更新算法图标
    getAlgIcone: imageManage + "/algIconByAlgAndVersion",
    imageMetaDataListByCondition: imageManage + "/imageMetaDataListByCondition",
    queryProcessInfoTreeByTreeKey: modelManage + "/processclassify/queryProcessInfoTreeByTreeKey/", //算法分类查询
    getDataList: imageManage + '/imageUpload/', //算法上传
    operatingRecord: sthxServerSystem + '/operatingRecord/reocrd',
    // showFlie:imageManage + '/fileShow',
    getImageMetaDataList: imageManage + "/imageMetaDataListByID/", //算法参数查询
    imageUploadBatch: imageManage + "/imageUploadBatch", //批量上传
    imageTaskListByID: modelManage + "/imageTask/imageTaskListByID/", //批量上传信息
  },
  grafana: {
    getCpu: grafana + "/query_range",
    query: grafana + '/query'
  },
  RWJK_LCT: {
    search: "/coordinator/metadata/workflow/search"
  },
  productionLine: {
    copyProductionLine: productionManage + "/metadata/workflow/", //复制生产线
    downLoadProductionLine: pieAuth + "/coordinator/metadata/workflow/",
    createBind: managementProcess + "/sthx_server/system/productLine/api/v1/createBind",
    getRoleProductLine: managementProcess + "/sthx_server/system/productLine/api/v1/getRoleProductLine"
  },
  fileResourceManage: {
    getCatalogList: fileResource + "/api/v1/resource/list",
    createFolder: fileResource + "/api/v1/resource/createFolder",
    createFile: fileResource + '/api/v1/resource/createFile',
    delete: fileResource + "/api/v1/resource/delete",
    // downloadFile: fileResource + "/api/v1/resource/downloadReport",
    find: fileResource + "/api/v1/resource/find",
    doCheckBefore: fileResource + '/api/v1/resource/doCheckBefore',
    operate: fileResource + "/api/v1/resource/operate", //移动&复制
    rename: fileResource + "/api/v1/resource/rename/",
    compress: fileResource + '/api/v1/resource/compress',
    unCompress: fileResource + "/api/v1/resource/unCompress",
    // uploadFile: fileResource + "/api/v1/resource/uploadFile",
    upload: fileResource + "/api/v1/resource/upload",
    getDownLoadKey: fileResource + "/api/v1/resource/getDownLoadKey",
   download: fileResource + "/api/v1/resource/download",
  },
  coordinatorTask: {},
  dataEngine: {
    queryFeature: dataEngine + '/featureCollection/queryFeatureByQueryParameter',
    queryRegionClassifyType: pieAuth + "/sthx_server/product/taskProduct/queryAreaType",
    readShp: pieAuth + "/sthx_server/product/vectorData/readShp"
  },
  commonPath: pieAuth,
  grafanaUrl: grafanaUrl,
  webSocketUrl: webSocketUrl,

  //zangxianju
  downLoadFile: {
    isExit: pieAuth + "/file/system/manage/api/v1/resource/isExit", //判断文件是否可以下载
    getFileTree: pieAuth + "/file/system/manage/api/v1/resource/getFileTree" //下载文件的文件组织机构树
  }




}
export default UrlPath
*/